package com.ruoyi.project.kkad.advertising.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import com.ruoyi.project.kkad.adplace.domain.AdvertisingPlace;

import java.util.Date;

/**
 * 广告管理对象 advertising
 * 
 * @author shixiangwen
 * @date 2020-04-13
 */
public class Advertising extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/** id */
	private Long id;

	/** 应用ID */
	@Excel(name = "应用ID")
	private String appId;

	/** 计费类型 */
	@Excel(name = "计费类型")
	private Long billingType;

	/** 目标 */
	@Excel(name = "目标")
	private Long goal;

	/** 序号 */
	@Excel(name = "序号")
	private Long sequence;

	/** 图片 */
	@Excel(name = "图片")
	private String imgUri;

	/** 文字 */
	@Excel(name = "文字")
	private String content;

	/** 状态 */
	@Excel(name = "状态")
	private Long status;

	/** 跳转URL */
	@Excel(name = "跳转URL")
	private String targetUrl;

	/** 生效时间 */
	@Excel(name = "生效时间", width = 30, dateFormat = "yyyy-MM-dd")
	private Date effectStart;

	/** 结束时间 */
	@Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
	private Date effectEnd;

	/** 创建时间 */
	@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
	private Date createdTime;

	/** 创建人 */
	@Excel(name = "创建人")
	private String createdUserId;

	/** 位置代码 */
	@Excel(name = "位置代码")
	private String placeCode;

	/** 平台 */
	@Excel(name = "平台")
	private String platform;

	/** 跳转类型 */
	@Excel(name = "跳转类型")
	private Long targetType;

	/** 是否测试 */
	@Excel(name = "是否测试")
	private Long test;

	private AdvertisingPlace place;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getAppId() {
		return appId;
	}

	public void setBillingType(Long billingType) {
		this.billingType = billingType;
	}

	public Long getBillingType() {
		return billingType;
	}

	public void setGoal(Long goal) {
		this.goal = goal;
	}

	public Long getGoal() {
		return goal;
	}

	public void setSequence(Long sequence) {
		this.sequence = sequence;
	}

	public Long getSequence() {
		return sequence;
	}

	public void setImgUri(String imgUri) {
		this.imgUri = imgUri;
	}

	public String getImgUri() {
		return imgUri;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getContent() {
		return content;
	}

	public void setStatus(Long status) {
		this.status = status;
	}

	public Long getStatus() {
		return status;
	}

	public void setTargetUrl(String targetUrl) {
		this.targetUrl = targetUrl;
	}

	public String getTargetUrl() {
		return targetUrl;
	}

	public void setEffectStart(Date effectStart) {
		this.effectStart = effectStart;
	}

	public Date getEffectStart() {
		return effectStart;
	}

	public void setEffectEnd(Date effectEnd) {
		this.effectEnd = effectEnd;
	}

	public Date getEffectEnd() {
		return effectEnd;
	}

	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}

	public Date getCreatedTime() {
		return createdTime;
	}

	public void setCreatedUserId(String createdUserId) {
		this.createdUserId = createdUserId;
	}

	public String getCreatedUserId() {
		return createdUserId;
	}

	public void setPlaceCode(String placeCode) {
		this.placeCode = placeCode;
	}

	public String getPlaceCode() {
		return placeCode;
	}

	public void setPlatform(String platform) {
		this.platform = platform;
	}

	public String getPlatform() {
		return platform;
	}

	public void setTargetType(Long targetType) {
		this.targetType = targetType;
	}

	public Long getTargetType() {
		return targetType;
	}

	public void setTest(Long test) {
		this.test = test;
	}

	public Long getTest() {
		return test;
	}

	public AdvertisingPlace getPlace() {
		return place;
	}

	public void setPlace(AdvertisingPlace place) {
		this.place = place;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("appId", getAppId()).append("billingType", getBillingType()).append("goal", getGoal())
				.append("sequence", getSequence()).append("imgUri", getImgUri()).append("content", getContent()).append("status", getStatus()).append("targetUrl", getTargetUrl())
				.append("effectStart", getEffectStart()).append("effectEnd", getEffectEnd()).append("createdTime", getCreatedTime()).append("createdUserId", getCreatedUserId())
				.append("placeCode", getPlaceCode()).append("remark", getRemark()).append("platform", getPlatform()).append("targetType", getTargetType()).append("test", getTest()).toString();
	}
}
